API Documentation
Public Member Functions | List of all members
nkDebug::OutputTarget Class Referencefinal

Allows to customize the output target of test results. More...

Public Member Functions

 OutputTarget ()
 
 ~OutputTarget ()
 
void setTargetLogManager ()
 
void setTargetFile (const nkMemory::StringView &path)
 
void write (const nkMemory::StringView &s)
 

Detailed Description

Allows to customize the output target of test results.

Constructor & Destructor Documentation

◆ OutputTarget()

nkDebug::OutputTarget::OutputTarget ( )

Default constructor. By default, an OutputTarget will write to the LogManager.

◆ ~OutputTarget()

nkDebug::OutputTarget::~OutputTarget ( )

Destructor.

Member Function Documentation

◆ setTargetLogManager()

void nkDebug::OutputTarget::setTargetLogManager ( )

Sets the output target as the LogManager.

◆ setTargetFile()

void nkDebug::OutputTarget::setTargetFile ( const nkMemory::StringView path)

Sets the output target as a file.

Parameters
pathThe path to the target file. Will be interpreted relative to nkResource's working folder (see nkResources::ResourceManager::setWorkingPath).

◆ write()

void nkDebug::OutputTarget::write ( const nkMemory::StringView s)

Requests to write to the target output.

Parameters
sThe string to write.

The documentation for this class was generated from the following file: